package org.agile2soft.nexoma.core.entities;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "AUDIT_CITIZENS")
@SuppressWarnings({"serial"})
public class AuditCitizens implements java.io.Serializable {

    private AuditCitizensId id;

    public AuditCitizens() {
    }

    public AuditCitizens(AuditCitizensId id) {
        this.id = id;
    }

    @EmbeddedId
    @AttributeOverrides( {
            @AttributeOverride(name = "serviceName", column = @Column(name = "AUD_SERVICE_NAME", nullable = false, length = 100)),
            @AttributeOverride(name = "serviceId", column = @Column(name = "AUD_SERVICE_ID", nullable = false)),
            @AttributeOverride(name = "userName", column = @Column(name = "AUD_USER_NAME", nullable = false, length = 100)),
            @AttributeOverride(name = "documentNumber", column = @Column(name = "AUD_DOCUMENT_NUMBER", nullable = false, length = 25)),
            @AttributeOverride(name = "date", column = @Column(name = "AUD_DATE", nullable = false, length = 19)) })
    public AuditCitizensId getId() {
        return this.id;
    }

    public void setId(AuditCitizensId id) {
        this.id = id;
    }

}
